from pydantic import BaseModel
from datetime import datetime


class Plot(BaseModel):
    Name: str
    Area: float
    Crop: str
    PlantingDate: datetime
    GrowthStage: str
    FarmID: int
    LesseeID: int

    class Config:
        orm_mode = True
